//
//  NSPwpScroller.swift
//  TestPwp
//
//  Created by Denny on 2018/11/29.
//  Copyright © 2018 Denny. All rights reserved.
//

import Cocoa

class NSPwpScroller: NSScroller {

    override func draw(_ dirtyRect: NSRect) {
        super.draw(dirtyRect)

        // Drawing code here.
        
//        super.draw(dirtyRect)
//        NSColor.clear.setFill()
//        dirtyRect.fill()
//        // whatever style you want here for knob if you want
//        knobStyle = .dark
        
//        NSDrawWindowBackground(bounds);
//        self.drawKnob()
        
        NSColor.clear.set()
        __NSRectFill(dirtyRect)
        
        self.drawKnob()
    }
    
}
